import request from '@/utils/request'

export function teamStatis() {
	return request({
		'url': '/pay/teamStatis',
		'method': 'get'
	})
}

export function distinctQuery() {
	return request({
		'url': '/user/distinctQuery',
		'method': 'get'
	})
}

export function teamOrders(query) {
	return request({
		'url': '/pay/teamOrders',
		'method': 'get',
		'params': query
	})
}

export function msg(key) {
	return request({
		url: '/msg/' + key,
		method: 'get'
	})
}

export let status = [{
		value: 'SUCCESS',
		text: '成功'
	},
	{
		value: 'REFUND',
		text: '退款'
	},
	{
		value: 'NOTPAY',
		text: '未支付'
	},
	{
		value: 'CLOSED',
		text: '关闭'
	},
	{
		value: 'USERPAYING',
		text: '支付中'
	},
	{
		value: 'PAYERROR',
		text: '支付异常'
	}
]
